import kafka

def retrieve_all_kafka_topics(kafka_server):
  consumer = kafka.KafkaConsumer(bootstrap_servers=kafka_server)
  return consumer.topics()
